<#assign content>
<div class="right_col" role="main">
    <div class="">
        <div class="page-title">
            <div class="title_left">
                <h3>订单详情</h3>
            </div>
            <div class="title_right"></div>
        </div>
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_content">
                        <#if details?exists && details?size gt 0>
                            <div class="alert alert-info alert-dismissible fade in" role="alert">
                                <strong>
                                    订单号：<#if sOrder?exists>${sOrder.id}</#if>
                                    总数：<#if sOrder?exists>${sOrder.total}</#if>
                                    <#if sOrder?exists><#assign tprice = MoneyTag.priceToString(sOrder.tprice) /></#if>
                                    商品总额：<#if sOrder?exists>${tprice}</#if>
                                    <#if sOrder?exists><#assign acprice = MoneyTag.priceToString(sOrder.acprice) /></#if>
                                    实际支付金额：<#if sOrder?exists>${acprice}</#if>
                                    订单状态：<#if sOrder?exists>
                                        <#switch sOrder.status>
                                            <#case 0>
                                                初始化
                                                <#break>
                                            <#case 1>
                                                未付款
                                                <#break>
                                            <#case 2>
                                                支付中
                                                <#break>
                                            <#case 3>
                                                支付成功
                                                <#break>
                                            <#case -3>
                                                支付失败
                                                <#break>
                                            <#case -4>
                                                订单取消
                                                <#break>
                                            <#case 4>
                                                订单完成
                                                <#break>
                                            <#case -10>
                                                下单失败
                                                <#break>
                                        </#switch>
                                    </#if>

                                </strong>
                            </div>
                            <#list details as detail>
                                <div class="col-md-4 col-sm-4 col-xs-12 profile_details">
                                    <div class="well profile_view" style="width: 100%">
                                        <div class="col-sm-12">
                                            <p><strong>订单号：<#if detail.OID?exists>${detail.OID}</#if></strong></p>
                                            <p><strong>名称：<#if detail.productname?exists>${detail.productname}</#if></strong></p>
                                            <p><strong>产品描述：<#if detail.description?exists>${detail.description}</#if></strong></p>
                                            <#if detail.price?exists><#assign price = MoneyTag.priceToString(detail.price) /></#if>
                                            <p><strong>原单价：${price}</strong></p>
                                            <#if detail.price?exists><#assign cprice = MoneyTag.priceToString(detail.cprice) /></#if>
                                            <p><strong>现单价：${cprice}</strong></p>
                                            <p><strong>个数：<#if detail.counts?exists>${detail.counts}</#if></strong></p>
                                        </div>
                                    </div>
                                </div>
                            </#list>
                        </#if>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</#assign>
<#include "../_inc/layout.ftl" />

